package com.lbd.gulimall.cart.feign;

import com.lbd.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: linbd
 * @Description:
 * @Date: 2023/3/25 14:41
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    @RequestMapping("/product/skusaleattrvalue/getSaleAttrBySkuId/{skuId}")
    R getSaleAttrBySkuId(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skuinfo/getPrice/{skuId}")
    R getPrice(@PathVariable("skuId") Long skuId);
}
